﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ctrUser.ascx.cs" Inherits="PM.Admin.ctrUser.ctrUser" %>
<div class="detail box">
<div class="bottom_box_content box">
<div class="head_box_content box">
<div class="ct"><p>Danh sách tin</p></div>
<div class="search">
<asp:TextBox ID="TextBox1" runat="server" CssClass="input_se input_box"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Tìm kiếm" CssClass="button_box btn_se"/>
</div> 
<div class="clear"></div>
</div><!--head_box_content box-->
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
    
<asp:GridView ID="GridView1" runat="server" CellPadding="4" 
DataKeyNames="id" 
EmptyDataText="không có dữ liệu" 
AllowPaging="True"
PageSize="5"
AutoGenerateColumns="False" 
Width="100%" onpageindexchanging="GridView1_PageIndexChanging" 
onrowdatabound="GridView1_RowDataBound" onrowdeleting="GridView1_RowDeleting" 
EnableTheming="True" ShowHeaderWhenEmpty="True" >
<RowStyle BackColor="#F3F3F3"></RowStyle>
<AlternatingRowStyle BackColor="white"></AlternatingRowStyle>
<EditRowStyle BackColor="#D9EEA2"></EditRowStyle>
<SelectedRowStyle BackColor="#D9EEA2"></SelectedRowStyle>
<Columns>
<asp:TemplateField HeaderText="STT">
<ItemTemplate>
<%#Container.DataItemIndex+1 %>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" VerticalAlign="Middle"></HeaderStyle>
<ItemStyle Width="30px" HorizontalAlign="Left"></ItemStyle>
</asp:TemplateField>

<asp:TemplateField runat="server" HeaderText="Tên">
<ItemTemplate>
<asp:Label runat="server" Text='<%#Bind("Name") %>' ID="lblTen"></asp:Label>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" VerticalAlign="Middle"></HeaderStyle>
<ItemStyle Width="150px" HorizontalAlign="Left"></ItemStyle>
</asp:TemplateField>

 <asp:TemplateField runat="server" HeaderText="Tên đăng nhập">
<ItemTemplate>
<asp:Label runat="server" Text='<%#Bind("Username") %>' ID="lbltDN"></asp:Label>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" VerticalAlign="Middle"></HeaderStyle>
<ItemStyle Width="" HorizontalAlign="Left"></ItemStyle>
</asp:TemplateField>

<asp:TemplateField runat="server" HeaderText="Admin">
<ItemTemplate>
<asp:Label runat="server" Text='<%#Common.PageHelper.ShowActiveStatusAdmin(DataBinder.Eval(Container,"DataItem.Admin").ToString()) %>' ID="lblAdmin"></asp:Label>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" VerticalAlign="Middle"></HeaderStyle>
<ItemStyle Width="" HorizontalAlign="Left"></ItemStyle>
</asp:TemplateField>

<asp:TemplateField runat="server" HeaderText="Kích hoạt">
<ItemTemplate>
<asp:Label runat="server" Text='<%#Common.PageHelper.ShowActiveStatus(DataBinder.Eval(Container,"DataItem.Active").ToString()) %>' ID="lblActive"></asp:Label>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" VerticalAlign="Middle"></HeaderStyle>
<ItemStyle Width="" HorizontalAlign="Left"></ItemStyle>
</asp:TemplateField>
         
<asp:CommandField ShowDeleteButton="True" DeleteText="Xóa">
<ItemStyle Width="" HorizontalAlign="Left">  
</ItemStyle>
</asp:CommandField>           
           
</Columns> 
<PagerStyle HorizontalAlign="Left"></PagerStyle>
</asp:GridView><!--end GridView-->
  
</ContentTemplate>
</asp:UpdatePanel>
</div><!--end bottom_box_content box-->
<div class="mtnv">
    <asp:LinkButton ID="LinkButton1" runat="server" CssClass="btn_mtd">Xóa</asp:LinkButton>
</div><!--end mtnv-->
</div><!--end detail box-->
<div id="hr_"></div>